<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-19
 * Time: 上午8:48
 */

spl_autoload_register('autoload1');
\Test1::test();
echo PHP_EOL;
\Test2::test();
function autoload1($class){
    echo __DIR__.'/'.$class.'.php';
    require __DIR__.'/'.$class.'.php';
}
function autoload2($class){
    require __DIR__.'/'.$class.'.php';
}
